package com.myhouse.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myhouse.biz.DistrictService;
import com.myhouse.biz.StreetService;
import com.myhouse.dao.DistrictDao;
import com.myhouse.dao.HouseDao;
import com.myhouse.dao.StreetDao;
import com.myhouse.entity.District;
import com.myhouse.entity.Street;

@Service
public class StreetServiceImpl  implements StreetService{
	@Resource
	private DistrictDao districtDao;
	@Resource 
	private StreetDao streetDao;
	@Resource 
	private HouseDao houseDao;
	@Override
	public void add(Street street) {
		streetDao.add(street);
	}
	@Override
	//未完成
	public void delete(int id) {
		streetDao.delete(id);
		
	}
	@Override
	public void update(Street street) {
		streetDao.update(street);
		
	}
	@Override
	public List<Street> getAll() {
		return streetDao.getAll();
	}
	@Override
	public Street getStreetById(int id) {
		return streetDao.getStreetById(id);
	}
	@Override
	public List<Street> getStreetByTitle(String title) {
		return streetDao.getStreetByTitle(title);
	}
	@Override
	public List<Street> getdistId(int did) {
		return streetDao.getdistId(did);
	}
	
	


}
